<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 * 
 * INSERT INTO  `bbs`.`t_message` (
`id` ,
`username` ,
`sex` ,
`content` ,
`avater` ,
`time_at`
)
VALUES (
NULL ,  'gbgfng',  'gf',  'gnfnsnjshf',  'sfnhyd',  ''
);


 */


require_once './db_conn.php';
$conn;
$Imgurl = $_POST['Imgurl'];
$linkurl = $_POST['linkurl'];
$txt = $_POST['txt'];

$sql = "
INSERT INTO `db_sente`.`tb_ad` (
 `id`,
 `Imgurl`, 
 `linkurl`, 
 `txt`, 
 `isshow`)
  VALUES (
  NULL, '$Imgurl', '$linkurl', '$txt', '$isshow'
  );

  ";
$result = $conn->query($sql);
header("location:adv.php");

